package com.css.dzj.dzjjcss.modules.venue.service;

import com.css.dzj.dzjjcss.modules.venue.entity.VenueEntity;
import com.querydsl.core.QueryResults;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 场地场所接口
 */
public interface VenueService {

    /**
     * 新增公示通报信息
     */
    void add(VenueEntity pEntity);

    /**
     * 暂存公示通报信息
     */
    void addOnly(VenueEntity pEntity);
    /**
     * 修改公示通报信息
     */
    void update(VenueEntity pEntity);

    /**
     * 通过id查询公示通报信息
     */
    VenueEntity findById(String id);

    /**
     * 分页查询公示通报信息
     */
    QueryResults<VenueEntity> queryPage(Pageable pageable);

    /**
     * 删除公示通报信息
     */
    Boolean delete(String id);
    /**
     * 根据查询条件导出数据
     * 查询条件参数待定
     */
    List<VenueEntity> queryByParams(String placeName,String areaNumber,String responsibleDept,String chargePerson,String placePurpose,String status);
    //导出选中的行数据
    void exportAdmPenaltyToExcel(HttpServletResponse response, List<VenueEntity> venueEntity);
    //通过ids查询新行政处罚信息
    List<VenueEntity> queryByIds(String ids);
    /**
     * 查询所有抽取
     * @returnR
     */
    List queryAllJcss();
    //导入场地场所信息
    String uploadFile(MultipartFile file, HttpServletResponse response);
    QueryResults<VenueEntity> getGstbList(String placeName,String areaNumber,String responsibleDept,String chargePerson,String placePurpose,String status, Pageable pageable);
}
